package com.atguigu.order.config;

import org.springframework.amqp.support.converter.AbstractMessageConverter;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description: RabbitMessageConverterConfig
 * date: 2023/1/10 21:54
 * author: MR.孙
 */
@Configuration
public class RabbitMessageConverterConfig {

    @Bean
    public AbstractMessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }

}
